.class public final Lcom/burstly/lib/constants/UriConstants;
.super Ljava/lang/Object;
.source "UriConstants.java"

# interfaces
.implements Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/constants/UriConstants$1;,
        Lcom/burstly/lib/constants/UriConstants$InstanceHolder;
    }
.end annotation


# static fields
.field public static final AD_SERVER_URI:Ljava/lang/String; = null

.field public static final CONFIGURATION_URI:Ljava/lang/String; = null

.field private static final CONTENT_ROOT_DEFAULT:Ljava/lang/String; = null

.field private static final CONTENT_ROOT_URL:Ljava/lang/String; = "contentRoot"

.field public static final CURRENCY_PRIMARY_HOST:Ljava/lang/String; = null

.field public static final CURRENCY_SECONDARY_HOST1:Ljava/lang/String; = null

.field public static final CURRENCY_SECONDARY_HOST2:Ljava/lang/String; = null

.field public static final CURRENCY_SECONDARY_HOST3:Ljava/lang/String; = null

.field public static final CURRENCY_SECURED_POINT:Ljava/lang/String; = null

.field public static final CURRENCY_SERVER_LIST:Ljava/lang/String; = null

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final PRIMARY_HOST_DEFAULT:Ljava/lang/String; = null

.field private static final PRIMARY_HOST_KEY:Ljava/lang/String; = "primaryhost"

.field public static final SECONDARY_HOST1:Ljava/lang/String;

.field public static final SECONDARY_HOST2:Ljava/lang/String;

.field public static final SECONDARY_HOST3:Ljava/lang/String;

.field public static final SINGLE_AD_URI:Ljava/lang/String;

.field public static final SINGLE_DOWNLOAD_TRACK_URI:Ljava/lang/String;

.field public static final SINGLE_TRACK_CLICK_URI:Ljava/lang/String;

.field public static final SINGLE_TRACK_URI:Ljava/lang/String;

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private mContentRoot:Ljava/lang/String;

.field private mPrimaryHost:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 35
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 40
    const-class v0, Lcom/burstly/lib/constants/UriConstants;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->TAG:Ljava/lang/String;

    .line 74
    const-string v0, "currency.encrypted.point"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_SECURED_POINT:Ljava/lang/String;

    .line 79
    const-string v0, "connect.adServerList"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->AD_SERVER_URI:Ljava/lang/String;

    .line 84
    const-string v0, "connect.singleDownloadTrackUri"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SINGLE_DOWNLOAD_TRACK_URI:Ljava/lang/String;

    .line 90
    const-string v0, "connect.singleAdUri"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SINGLE_AD_URI:Ljava/lang/String;

    .line 95
    const-string v0, "connect.singleTrackClickUri"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SINGLE_TRACK_CLICK_URI:Ljava/lang/String;

    .line 100
    const-string v0, "connect.singleTrackUri"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SINGLE_TRACK_URI:Ljava/lang/String;

    .line 105
    const-string v0, "connect.singleAdHost3"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST3:Ljava/lang/String;

    .line 110
    const-string v0, "connect.singleAdHost2"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST2:Ljava/lang/String;

    .line 115
    const-string v0, "connect.singleAdHost1"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST1:Ljava/lang/String;

    .line 120
    const-string v0, "connect.singleAdHost"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->PRIMARY_HOST_DEFAULT:Ljava/lang/String;

    .line 125
    const-string v0, "currency.host3"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_SECONDARY_HOST3:Ljava/lang/String;

    .line 131
    const-string v0, "currency.host2"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_SECONDARY_HOST2:Ljava/lang/String;

    .line 137
    const-string v0, "currency.host1"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_SECONDARY_HOST1:Ljava/lang/String;

    .line 143
    const-string v0, "currency.host"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_PRIMARY_HOST:Ljava/lang/String;

    .line 148
    const-string v0, "connect.serverList"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CURRENCY_SERVER_LIST:Ljava/lang/String;

    .line 153
    const-string v0, "connect.confService"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CONFIGURATION_URI:Ljava/lang/String;

    .line 158
    const-string v0, "connect.contentRoot"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/UriConstants;->CONTENT_ROOT_DEFAULT:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    .prologue
    .line 67
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 163
    sget-object v0, Lcom/burstly/lib/constants/UriConstants;->PRIMARY_HOST_DEFAULT:Ljava/lang/String;

    iput-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mPrimaryHost:Ljava/lang/String;

    .line 168
    sget-object v0, Lcom/burstly/lib/constants/UriConstants;->CONTENT_ROOT_DEFAULT:Ljava/lang/String;

    iput-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mContentRoot:Ljava/lang/String;

    .line 68
    invoke-static {p0}, Lcom/burstly/lib/service/ServerConfigurationService;->addRecipient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V

    .line 69
    return-void
.end method

.method synthetic constructor <init>(Lcom/burstly/lib/constants/UriConstants$1;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/burstly/lib/constants/UriConstants;-><init>()V

    return-void
.end method

.method public static getInstance()Lcom/burstly/lib/constants/UriConstants;
    .locals 1

    .prologue
    .line 176
    sget-object v0, Lcom/burstly/lib/constants/UriConstants$InstanceHolder;->INSTANCE:Lcom/burstly/lib/constants/UriConstants;

    return-object v0
.end method

.method private static getValue(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .parameter
    .parameter "key"
    .parameter "defaultValue"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 197
    .local p0, configurationData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 198
    .local v0, url:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 199
    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/constants/UriConstants;->TAG:Ljava/lang/String;

    const-string v3, "New value: {0} = {1}"

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object p1, v4, v5

    const/4 v5, 0x1

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 202
    .end local v0           #url:Ljava/lang/String;
    :goto_0
    return-object v0

    .restart local v0       #url:Ljava/lang/String;
    :cond_0
    move-object v0, p2

    goto :goto_0
.end method


# virtual methods
.method public configure(Ljava/util/Map;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 181
    .local p1, configurationData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "primaryhost"

    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->PRIMARY_HOST_DEFAULT:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/burstly/lib/constants/UriConstants;->getValue(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mPrimaryHost:Ljava/lang/String;

    .line 182
    const-string v0, "contentRoot"

    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->CONTENT_ROOT_DEFAULT:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/burstly/lib/constants/UriConstants;->getValue(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mContentRoot:Ljava/lang/String;

    .line 183
    return-void
.end method

.method public getContentRoot()Ljava/lang/String;
    .locals 1

    .prologue
    .line 230
    iget-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mContentRoot:Ljava/lang/String;

    return-object v0
.end method

.method public getPrimaryHost()Ljava/lang/String;
    .locals 1

    .prologue
    .line 221
    iget-object v0, p0, Lcom/burstly/lib/constants/UriConstants;->mPrimaryHost:Ljava/lang/String;

    return-object v0
.end method

.method public isConstantRecepient()Z
    .locals 1

    .prologue
    .line 212
    const/4 v0, 0x1

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 207
    sget-object v0, Lcom/burstly/lib/constants/UriConstants;->TAG:Ljava/lang/String;

    return-object v0
.end method
